import pandas as pd
import matplotlib.pyplot as plt
df = pd.read_excel('2022年某店铺3个分店销售额.xlsx')
x = df['月份']
y1 = df['第一分店']
y2 = df['第二分店']
y3 = df['第三分店']
plt.figure(figsize=(14,8))
plt.rcParams['font.sans-serif']='SimHei'
plt.title('2022年店铺销售额')
plt.xlabel = ('月份')
plt.ylabel = ('销售额 :万元')
for a,b in zip(x,y1):
    plt.text(x=a,y=b,s=b,ha='right')
for a,b in zip(x,y2):
    plt.text(x=a,y=b,s=b,ha='right')
for a,b in zip(x,y3):
    plt.text(x=a,y=b,s=b,ha='right')
plt.plot(x,y1,ls='-.',c='b')
plt.plot(x,y2,ls='-',c='m')
plt.plot(x,y3,ls=':',c='c')
plt.legend(['第一分店销售额','第二分店销售额','第三分店销售额'])
plt.savefig('C:/2022年店铺销售额.png')
plt.show()